fix error with scheduler exceptions