diff --git a/app/controllers/my_courses.php b/app/controllers/my_courses.php
index 2a3dd30b73eeeed4db0a2063c992017242331c2a..0c12f417bb5974013837c9b99c87cefd9b926071 100644
--- a/app/controllers/my_courses.php
+++ b/app/controllers/my_courses.php
@@ -883,7 +883,7 @@ class MyCoursesController extends AuthenticatedController
                 _('Neue Veranstaltung anlegen'),
                 URLHelper::getURL('dispatch.php/course/wizard'),
                 Icon::create('seminar+add')
-            );
+            )->asDialog();
         }
 
         $setting_widget->addLink(
@@ -896,7 +896,7 @@ class MyCoursesController extends AuthenticatedController
                 _('Neue Studiengruppe anlegen'),
                 URLHelper::getURL('dispatch.php/course/wizard', ['studygroup' => 1]),
                 Icon::create('studygroup+add')
-            )->asDialog('size=auto');
+            )->asDialog();
         }
 
         $this->setGroupingSelector($group_field);