Fixed logic error in isPaused().