Fix bugs with bbc.