scheduler fixing