make the behavior of fullscreen more perfect