trying to fix the AnnotationRegistry problem