fix error gen_name in spec