Fix the initialization issue of 'codegenEnabled'