fix bug in bindings to component attributes with view functions