diff --git a/doc/notebooks/07_tutorial_shanchen_twophase.ipynb b/doc/notebooks/07_tutorial_shanchen_twophase.ipynb
index 6f0be3f51fbc6191109eb07df8ce1b857a14842e..ac9c4af07146cdfbe72ce6e3d869867d1365434e 100644
--- a/doc/notebooks/07_tutorial_shanchen_twophase.ipynb
+++ b/doc/notebooks/07_tutorial_shanchen_twophase.ipynb
@@ -84,7 +84,7 @@
    "metadata": {},
    "source": [
     "The force on the fluid is\n",
-    "$\\vec{F}_A(\\vec{x})=-\\psi(\\rho_A(\\vec{x}))g_{AA}\\sum\\limits_{i=1}^{19}w_i\\psi(\\rho_A(\\vec{x}+\\vec{c}_i))\\vec{c}_i$\n",
+    "$\\vec{F}_A(\\vec{x})=-\\psi(\\rho_A(\\vec{x}))g_{AA}\\sum\\limits_{i=1}^{q}w_i\\psi(\\rho_A(\\vec{x}+\\vec{c}_i))\\vec{c}_i$\n",
     "with \n",
     "$\\psi(\\rho)=\\rho_0\\left[1-\\exp(-\\rho/\\rho_0)\\right]$."
    ]
diff --git a/doc/notebooks/08_tutorial_shanchen_twocomponent.ipynb b/doc/notebooks/08_tutorial_shanchen_twocomponent.ipynb
index 4d2d79f922af595ea07f3e80adfef9714995fded..3b60debd810fe745f2a56460c2d691d70dcd7978 100644
--- a/doc/notebooks/08_tutorial_shanchen_twocomponent.ipynb
+++ b/doc/notebooks/08_tutorial_shanchen_twocomponent.ipynb
@@ -102,7 +102,7 @@
    "metadata": {},
    "source": [
     "The force between the two components is\n",
-    "$\\vec{F}_k(\\vec{x})=-\\psi(\\rho_k(\\vec{x}))\\sum\\limits_{k^\\prime\\in\\{A,B\\}}g_{kk^\\prime}\\sum\\limits_{i=1}^{19}w_i\\psi(\\rho_{k^\\prime}(\\vec{x}+\\vec{c}_i))\\vec{c}_i$\n",
+    "$\\vec{F}_k(\\vec{x})=-\\psi(\\rho_k(\\vec{x}))\\sum\\limits_{k^\\prime\\in\\{A,B\\}}g_{kk^\\prime}\\sum\\limits_{i=1}^{q}w_i\\psi(\\rho_{k^\\prime}(\\vec{x}+\\vec{c}_i))\\vec{c}_i$\n",
     "for $k\\in\\{A,B\\}$\n",
     "and with \n",
     "$\\psi(\\rho)=\\rho_0\\left[1-\\exp(-\\rho/\\rho_0)\\right]$."