make sure _environment gets set properly on all rows.