Error catching in ScheduleDisplay to stop the crash