Now the each method returns the row id correctly