Fixed #343 in conn2() for Lua