fix PhoneGap