Fixed a bug related to lua_call