Correct bug when adding and edditing tooltips