Fixed non-refactored code for LUA_COMPAT_MOD.