diff --git a/src/manager_window.vala b/src/manager_window.vala
index 1f2378f819b50dfacbd6fd43356ce95dcab8e550..d3aeff90925d89229f561f58221708e384d98c05 100644
--- a/src/manager_window.vala
+++ b/src/manager_window.vala
@@ -1227,12 +1227,7 @@ namespace Pamac {
 			switch (filters_stack.visible_child_name) {
 				case "filters":
 					header_filter_label.set_markup ("");
-					if (search_button.active) {
-						search_entry.set_text ("");
-						search_entry.grab_focus ();
-					} else {
-						search_button.active = true;
-					}
+					search_button.active = false;
 					restore_packages_sort_order ();
 					show_sidebar ();
 					set_pendings_operations ();