fix bug for b2b stockout