Fix visual glitch on safari