fix lua generator

test result is
# of OK: 22, # of FAILED: 22