Corrected the index