fix a crazy bug with safari and history.popstate