diff --git a/blocktopmenu.php b/blocktopmenu.php
index cc2788f..3fa0723 100644
--- a/blocktopmenu.php
+++ b/blocktopmenu.php
@@ -617,7 +617,7 @@ class Blocktopmenu extends Module
$html .= '
';
$html .= $this->generateCategoriesMenu($category['children'], 1);
- if ((int)$category['level_depth'] > 1)
+ if ((int)$category['level_depth'] > 1 && !$is_children)
{
$files = scandir(_PS_CAT_IMG_DIR_);