Phonegap fixes