Fixed resizing glitches