Fixed bug in dialogs module