fixed bug when using ie driver for selenium