codegeneration command bug fix