Fixing an error in schedules