Bug for task completed fixed