Fix bug in pushstate routing