pauseSimulation fix