fix up setscheduler