fix inconsistency with labels and adj matrix values