Fix delete task