fix behavior for scheduler