fixed problem where tasks were not deleted when project was deleted