Fixed a bug that caused by confirmation dialog appears when completing parent task with completed subtasks