fixed merging of single-valued links