Cleaning up paths in the index