Fix crash on confirmation dialog