Fixing template generation, was not using underscore template correctly

Just ran into this bug just now, this fix restores uber-ngen to good working order