Fix problem when doesn't use confirmation dialog