Fix error in linkage dict creation