Fixed variable not changed from $field to $definition.