fixed the index