Cleaning up index file.