fixed minor bug in labeling