Fixed a bug in bp catalogue