Fix resize and fullscreen open