Corrected a mistake I made on Index