bugfix

when selecting a complex element, the view would become the value.
this fix makes the model become the value.