Fixed core Lua binding