some Lua fixes