Fix code book