Fix error creating EntityTypeFieldAttribute