fix for Lua 5.2