Change code gen version to a local variable.