fixed for cordova application