Fix a bug in the bulge graph construction routine