fixes! (finally produce correct linkage matrix)