fix lua generator

test result is
OK: 22, FAILED: 22