fix cordova mock