Correcting variable inside _gen_support_code, _gen_code