fix for fullscreen mode