fix bug in confirm.py