Bugfix in Connect.java