Fixed behavior with too large dialogs.