avoid exception in printing the codegen enabled