Replacing field for field.name

Had a bad ref of the field object.