Fixed code preventing deletion of tasks or update of dates