fix code book