Fixed hashchange related bug