repair for phonegap