Fixed bug in getPairId() method, line 84