Fixed a bug in BP instances