Fix nested lists