[bugfix] a sematic bug fix of pairs