Fix history and title handlers.