fixed no state found on hashchange crash