Fix a corruption bug in fill_lists.