tweak to allow full screen to work correctly