Fix hashchange hack