fixed some cordova 3.5 cause bugs