diff --git a/slither/detectors/functions/external_function.py b/slither/detectors/functions/external_function.py
index <HASH>..<HASH> 100644
--- a/slither/detectors/functions/external_function.py
+++ b/slither/detectors/functions/external_function.py
@@ -109,8 +109,8 @@ class ExternalFunction(AbstractDetector):
             if self._contains_internal_dynamic_call(contract):
                 dynamic_call_contracts.add(contract)
 
-        # Loop through all not-inherited contracts.
-        for contract in self.slither.contracts_derived:
+        # Loop through all contracts
+        for contract in self.contracts:
 
             # Filter false-positives: Immediately filter this contract if it's in blacklist
             if contract in dynamic_call_contracts:
Loosen bounds on external-functions detector