Fixed bug in table gen, committed to lenses