Fix nested lists in history.