scheduler bug fixed