Fixed cordova bug