Each
\begin
and
\end
pair must have the same environment name.