fix for https://github.com/ios-driver/ios-driver/issues/18