Fixed a fullscreen related bug.