bugfix in pause()