Fixed bug in clearAnnotations() method.