Remove the extra 'end' line in the generator.

The extra end causes the generator to fail when loaded.