Fix a problem where the dialog backdrop was shown twice