Fixed a bug in bp instances