Fixes another bug that causes the browsing history to get stuck in the current state