Cleaning the index