fix a bug of commiting a transacton under HTTP-pipeline.