Fixed game breaking on pause