Remove unexpanded lists when extending lists