fixed crash in cbc