error in Calling C from Lua, thanks to magicleo