Fix modal dialog