fix codebook file