fixed canceling the cancel dialog