fix bug for b2c output