fix rememberscroll for safari