fixed print_barcode_ex a bug