Fix bug triggered on annotations with no targets