diff --git a/stats.sty b/stats.sty
index c374065ac50f846b72f9aaa0641146cf1e2a05de..ac8959d0db10f98e29832d43a9f1c24daee607be 100644
--- a/stats.sty
+++ b/stats.sty
@@ -132,9 +132,10 @@
 
 \newcommand\statblock[1]{
     \begin{tcolorbox}[
+      before={\begin{minipage}{\linewidth}},
       code={\setlength\parindent{0pt}#1},
       title={\npcsymbol~\name},
-      after={\afterStatBlock},
+      after={\afterStatBlock\end{minipage}},
       ornamented,
       size=fbox,
       fontupper=\small,