fix lua generator

OK: 29, FAILED: 19