removed a bug related to linkage removal