trying to fix error caused by phonegap build