fixed a minor bug related to cleaning_sched