fixed bug in confirm.py