fixed scheduler initialization