fix setItems keeping references to original arrays.