fixed clone array problem