add fix for safari initial popstate