fix nested representation of row numbers