fix bug in annotator