diff --git a/gsrp_tdoa_hyperres.py b/gsrp_tdoa_hyperres.py
index 547c199b3acbacf74a76d8056d72749e2c3e4920..f514a29e20763a1c8d11b72d63734007051d49a2 100755
--- a/gsrp_tdoa_hyperres.py
+++ b/gsrp_tdoa_hyperres.py
@@ -123,7 +123,7 @@ def corr(data, pos, w_size, max_tdoa, decimate=1, mode='prepare', hyper=True, ve
             der = np.zeros((num_channels - 1, num_channels - 1))
             der[ind] = coef[num_channels:]
             poly_min = np.linalg.lstsq(der + der.T, -coef[1:num_channels], rcond=None)[0]
-            with np.errstate(divide='ignore'):
+            with np.errstate(divide='ignore', invalid='ignore'):
                 return np.log10(pipe.predict(poly_min[np.newaxis]).item()), mat @ (poly_min + mean)
 
     cc = np.empty((num_channel_pairs, dw_size), np.float32)