[fix] - change condition has_schedule