Bugfix on method get_Pairwise