fixed getting primary from wrong reference in sync neighbor method