fixed linkage bug