Fix regressions caused by the recent implementation of browsing history