onPause fixed