fixed phonegap permissions