diff --git a/include/aidge/backend/cpu/operator/MaxPoolingImpl_forward_kernels.hpp b/include/aidge/backend/cpu/operator/MaxPoolingImpl_forward_kernels.hpp
index d75ba70be3246dca4d9dca5a5a2e724030105ba9..e05ac227df5a99e758657889d702847c5ad80270 100644
--- a/include/aidge/backend/cpu/operator/MaxPoolingImpl_forward_kernels.hpp
+++ b/include/aidge/backend/cpu/operator/MaxPoolingImpl_forward_kernels.hpp
@@ -84,6 +84,7 @@ void MaxPoolingImpl2D_cpu_forward_kernel(const MaxPooling_Op<2>::Parameters &par
 
                                 if (!valid || value > poolValue) {
                                     poolValue = value;
+                                    valid = true;
                                 }
                             }
                         }