fix phonegap issues