Engine::flushStep: fix segmentation fault of timer