Fix for Lua 5.2