fixed some error in the bb