Fix for appium 1.8