fix auto-confirmation