fix gen_sym