Fix the pushstate issue for history back > 1