https://github.com/appium/appium/pull/1865