Fixed major problem with dialogs.py.