fix bug in idempotency setting