restoring the cloud index to 0 in the testing file