diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 1af85bf20f90b3498d844cefbe1044d79dfcbd03..8c9d2e18328b845a0c9e678f20f72ddfd3766f4c 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -150,7 +150,7 @@ foreach ($modulesdir as $dir)
     						//print "x".$modName." ".$orders[$i]."\n<br>";
     						if (isset($categ[$objMod->special])) $categ[$objMod->special]++;					// Array of all different modules categories
     			            else $categ[$objMod->special]=1;
-    						$dirmod[$i] = $dirroot;
+    						$dirmod[$i] = $dir;
     						$j++;
     			            $i++;
     					}
@@ -323,6 +323,8 @@ if ($mode != 4)
             }
 
             $var=!$var;
+
+            //print "\n<!-- Module ".$objMod->numero." ".$objMod->getName()." found into ".$dirmod[$key]." -->\n";
             print '<tr height="18" '.$bc[$var].">\n";
 
             // Picto