Fixed a bug I created when removing the immersive mode code