Fixed black screen when toggling fullscreen