fix get_schedule