Small fix for phonegap 2.9+