diff --git a/course/lib.php b/course/lib.php
index 19065587d21..89b3c638997 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -1738,7 +1738,7 @@ function course_get_cm_edit_actions(cm_info $mod, $indent = -1, $sr = null) {
             $enabledclass = '';
         }
         $actions['moveleft'] = new action_menu_link_secondary(
-            new moodle_url($baseurl, ['id' => $mod->id, 'indent' => '0']),
+            new moodle_url($baseurl, ['id' => $mod->id, 'indent' => '-1']),
             new pix_icon($leftarrow, '', 'moodle', ['class' => 'iconsmall']),
             $str->moveleft,
             [