fix confirmation variable bug