fix linkage resolution for merge