fix phonegap/cordova adapter api not filling bug