scheduler zeroing logic fix