Fixing broken full screen mode