fix net connect call