Correct sgp.iter indexing