Fixed `onPopState` if smoothstate wasn't used.