fix a bug editing the label