Update Client.java

What I think is the fix to issue#1