fix reactor issue with negative sleep time