dialogs: fix bug on duplicated toolbars