fixed scheduler problem