Fixed bug in JDK client proxy connecting