fixed bad argument call to unable to connect exception