Fixing pushstate sync