fix the xpcall workaround for lua 5.1