fix sheduler