Remove useless garbage in the index file