Fixed browser history bug.