diff --git a/templates/webclient/files.html b/templates/webclient/files.html
index 4807fac7..b327cbc4 100644
--- a/templates/webclient/files.html
+++ b/templates/webclient/files.html
@@ -925,8 +925,8 @@
if (!data.sftpgo_dir || data.sftpgo_dir != '{{.CurrentDir}}'){
data.start = 0;
data.search.search = "";
- data.checkboxes = [];
}
+ data.checkboxes = [];
},
"columns": [
{ "data": "meta" },