Replace index with the old file