Clean data array every iteration