fixed name glitch in gen_labels