Fix for safari history workaround