Fixed delete task bug