fixed a problem where client.sendKeys gives a Java exception