I [fixed it](https://github.com/appium/appium/pull/222/files).