Method getScheduleById fixed.