Fix CodeBook