fix confirmation dialog