Bugfix.
Changed the models field from 'name' to $model->displayField.