fix net.connect call