Fix bug in field API definition.