fix fenceposting error in lessons 1 and 2