Fix bug of bgpribs