Fixed the resize problem (fullscreen is still a problem)