Fix ReferenceField validation