fix pushstate issues