fixes #230 fixed scheduler errors