fixed self.bb issue