fixed deletion of task