Fixed bug 66, which allowed multiple dialogs to be open at once