fixed some error in bae