fixing indexs