fixed bug in pairings engine