Fixed an issue where multiple dialogs are closed with one button click under a uniform alignment.