fix phonegap stuff