Fixed bugs in stop dialogs