Fixing Undefined first_in_row, line 9.