minor gen_labels fix