diff --git a/inc/html.php b/inc/html.php
index 0914a1762de1ba12bc0bff21d0c424f20b3c60da..24d108ea43e4d56f18e9c059ff0d1c0a819ff346 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -959,13 +959,14 @@ function html_list_index($item){
  */
 function html_li_index($item){
     global $INFO;
+    global $ACT;
 
     $class = '';
     $id = '';
 
     if($item['type'] == "f"){
         // scroll to the current item
-        if($item['id'] == $INFO['id']) {
+        if($item['id'] == $INFO['id'] && $ACT == 'index') {
             $id = ' id="scroll__here"';
             $class = ' bounce';
         }