fixed the indexes