fix deletion of labels