Fix a bug that the selenium-webdriver for firefox does not work