fixed a bug with the task complete output