fixed paused bug