Resolve multiple dialog dismiss crash bugs