Fixed an error, which appeared, when you try to delete a task