fix lag in safari