fixed labeling bug