correct an error in unlist(labels)