Fix pushState stuff when using browser's back button