Fixed resize glitches