- fixed error in scheduler