fix bugs for ccb reader