fix 2 functions in Lua interface