Replaced history.pushState with history.replaceState
a quick fix