fixed bug that led to CPU usage while paused