Fix router not updating location hash.