Fix with latest Cordova API