scheduler fix in setup