fixed a bug in b3