diff --git a/fhem/contrib/commandref_modular.pl b/fhem/contrib/commandref_modular.pl
index 0fe0494fc..aa2e2a180 100644
--- a/fhem/contrib/commandref_modular.pl
+++ b/fhem/contrib/commandref_modular.pl
@@ -76,7 +76,7 @@ for my $lang (@lang) {
$modData{$mName}{type}=$1 if($l =~ m/^=item\s+(helper|command|device)/);
$modData{$mName}{$1} =$2 if($l =~ m/^=item\s+(summary[^ ]*)\s(.*)$/);
$modData{$mName}{modLinks}{$1} = 1
- if($l =~ m// && $1 !~ m/^$mName/);
+ if($l =~ m// && $1 !~ m/^$mName/);
}
close(FH);
}