finally fixed scheduler variable typo