Fix back button when using popstate event. #1