fix bug of ingest for android, init the variable to 0