merge lua bugfix, read http://www.lua.org/bugs.html