Fixed the index