Fix initial popstate