diff --git a/include/aidge/hook/outputRange.hpp b/include/aidge/hook/outputRange.hpp
index 75462435d08008fbbc49003c7ab3be7ad9a56e3b..0351664f4bf12f30927afbb0d8759aa6031b98fd 100644
--- a/include/aidge/hook/outputRange.hpp
+++ b/include/aidge/hook/outputRange.hpp
@@ -43,8 +43,8 @@ public:
         //find the absolute max value in the tensor, save it to registered outputs
         for(std::size_t i = 0; i < tensor->size(); ++i) {
             //std::cout << "call() outputRange hook : casted_tensor[i] = " << casted_tensor[i] << std::endl;
-            if(abs(casted_tensor[i]) > max_value){
-                max_value = abs(casted_tensor[i]);
+            if(std::abs(casted_tensor[i]) > max_value){
+                max_value = std::abs(casted_tensor[i]);
             }
         }
         //std::cout << "call() outputRange hook : max_value = " << max_value << std::endl;