Fixed pausing issue