Fixed a bug in bulge removal