Fix row indices for top row