some fixes. cordova 2.5