Fixed problem with deletion of Schedules.