Made minor change to auto-confirm bug in confirm() utility method.