Little fixes to Pause function.