Fix a bug in label position