fixed some problemns in BBManager