Lua: Fixed an error in table-functions callbacks.