correct the mistake when generate amicablePair.