fix bug in annotate