fixed clearSchedule error