Fixed gameloop crashing when going back/home