<commit_before>diff --git a/src/include/runlevel/ui.ycp b/src/include/runlevel/ui.ycp
index d534d20..2356a66 100644
--- a/src/include/runlevel/ui.ycp
+++ b/src/include/runlevel/ui.ycp
@@ -1574,6 +1574,15 @@ name or the name specified is already in use."));
     }
 
     /**
+     * Sets columns 0-S (runlevels) in table so they are synchronized with checkboxes.
+     */
+    define void refreshTableLine2 (map service) ``{
+        updateRlColumns (current_service, service, nil);
+        UI::ChangeWidget (`id (`table), `Item (current_service, c_dirty),
+                          service["dirty"]:false ? UI::Glyph(`CheckMark) : " ");
+    }
+
+    /**
      * Main dialog for changing services.
      * @return symbol for wizard sequencer
      */
@@ -1582,15 +1591,6 @@ name or the name specified is already in use."));
 	// currently selected service we are working with
 	map service = $[];
 
-	/**
-	 * Sets columns 0-S (runlevels) in table so they are synchronized with checkboxes.
-	 */
-	define void refreshTableLine2 () ``{
-	    updateRlColumns (current_service, service, nil);
-	    UI::ChangeWidget (`id (`table), `Item (current_service, c_dirty),
-			      service["dirty"]:false ? UI::Glyph(`CheckMark) : " ");
-	}
-
 	// headers in table
 	term header = `header (
 	    // table header
@@ -1706,7 +1706,7 @@ disabled?\n"), nfs_adj)))
 		{
 		    setServiceToDefault (current_service);
 		    service = RunlevelEd::services[current_service]:$[];
-		    refreshTableLine2 ();
+		    refreshTableLine2(service);
 		    ret = `table;
 		}
 		else if (`clear == ret)
@@ -1714,7 +1714,7 @@ disabled?\n"), nfs_adj)))
 		    // re-read from SCR
 		    service = Service::Info (current_service);
 		    RunlevelEd::services[current_service] = service;
-		    refreshTableLine2 ();
+		    refreshTableLine2(service);
 		    ret = `table;
 		}
 		else if (`clear_all == ret)<commit_msg>runlevel.patch - cleanup, y2r now supports nested functions<commit_after>
{'fraction_non_alphanumeric': 0.15345528455284552, 'fraction_numerical': 0.034552845528455285, 'mean_word_length': 2.899009900990099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '476646', 'n_tokens_mistral': 723, 'n_tokens_neox': 645, 'n_words': 156}