Fixes crash on no schedules