The setValue function appends, it does not overwrite. Used append for clarity
Merge pull request #2165 from creativedutchmen/duplicate_output

Caused by `setValue` which is really `appendValue`. Fixes #2139