work for https://github.com/detro/ghostdriver/issues/345