Bugfix: clone when setting values.