Fixed error when redoing the addition of an annotator.