fixes dialog delete