fixed history.popstate