Fixed a bug with setValues