fix bug in phonegap build