Fix bug in CBConvert