fixed onpause game pausing