Fix bug with ReferenceFieldDescriptor