Fix preview resize glitch