fix genbeans_lua