Fixed bug in view when value was an object