fix bug in WebDriverWait