Fixes #2139. Caused by setValue which is really appendValue

...arity