scheduler bugfix