diff --git a/pyfstat/mcmc_based_searches.py b/pyfstat/mcmc_based_searches.py
index 74f0d739c5f8ea9a1dea89e2495979e679f17ee8..e499d5caaa71e65d4e9296d162d24f2ee3143b6f 100644
--- a/pyfstat/mcmc_based_searches.py
+++ b/pyfstat/mcmc_based_searches.py
@@ -828,7 +828,7 @@ class MCMCSearch(core.BaseSearchClass):
                                      cs[:convergence_idx+1]-subtractions[i],
                                      color="r", alpha=alpha,
                                      lw=lw)
-                        axes[i].axvline(xoffset+idxs[convergence_idx],
+                        axes[i].axvline(xoffset+convergence_idx,
                                         color='k', ls='--', lw=0.25)
                     axes[i].plot(xoffset+idxs[burnin_idx:],
                                  cs[burnin_idx:]-subtractions[i],