Fixed resize glitch