fix row index