Fix a problem with list merging / trees