Right code wrong place.  Moved the offending line to within .each.