fix bug with linkage group sizes