Fix scroll-to in safari