fix for IllegalAnnotationsException