Fix nested lists.