fixed busy wait using tons of cpu while paused