History.pushState bug correction