Fixed undercounting of pairs