fixed a weird glitch in safari