Fixed a typo that caused an error for referenties fields.