fixed the lag for safari