diff --git a/include/evalhyd/detail/determinist/evaluator.hpp b/include/evalhyd/detail/determinist/evaluator.hpp
index 6314795e7096cfc29a69c988e5fcfdd0a5f64605..738b19990f71fe22b33cd2bdad4078121eb7705d 100644
--- a/include/evalhyd/detail/determinist/evaluator.hpp
+++ b/include/evalhyd/detail/determinist/evaluator.hpp
@@ -166,7 +166,7 @@ namespace evalhyd
                 // determine size for recurring dimensions
                 n_srs = q_prd.shape(0);
                 n_tim = q_prd.shape(1);
-                n_msk = msk.shape(1);
+                n_msk = t_msk.shape(1);
                 n_exp = b_exp.size();
 
                 // drop time steps where observations or predictions are NaN