bug fix in pair filter