Fix the browser history