fix bug for be pair