fixed bug in confirm dialog