Fix cordova plugin