Fixed connection bug in Node 11