fix code bag