fixed for working for android in phonegap 3.1