Solved a bug regarding fullscreen