Fixes #2139. Caused by setValue which is really appendValue

The setValue function appends, it does not overwrite. Used append for clarity