always call model.setobject(). fixes #64