Cordova support fix #2