Remove invalid annotations.