MADS: Fixes for the display of dialogs