fixed BB compilation problem