fix for fullscreen issue