<div dir="ltr">It seems, this code fixes the issue:<br><br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">\def\@iiiminipage#1#2[#3]#4{%</p>
<p style="margin: 0px; text-indent: 0px;">  \leavevmode</p>
<p style="margin: 0px; text-indent: 0px;">  \@pboxswfalse</p>
<p style="margin: 0px; text-indent: 0px;">  \setlength\@tempdima{#4}%</p>
<p style="margin: 0px; text-indent: 0px;">  \def\@mpargs{{#1}{#2}[#3]{#4}}%</p>
<p style="margin: 0px; text-indent: 0px;">  \setbox\@tempboxa\hbox\bgroup\if@rl\beginL\fi\vbox\bgroup</p>
<p style="margin: 0px; text-indent: 0px;">    \color@begingroup</p>
<p style="margin: 0px; text-indent: 0px;">      \hsize\@tempdima</p>
<p style="margin: 0px; text-indent: 0px;">      \textwidth\hsize \columnwidth\hsize</p>
<p style="margin: 0px; text-indent: 0px;">      \@parboxrestore</p>
<p style="margin: 0px; text-indent: 0px;">      \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@</p>
<p style="margin: 0px; text-indent: 0px;">      \let\@footnotetext\@mpfootnotetext</p>
<p style="margin: 0px; text-indent: 0px;">      \let\@listdepth\@mplistdepth \@mplistdepth\z@</p>
<p style="margin: 0px; text-indent: 0px;">      \@minipagerestore</p>
<p style="margin: 0px; text-indent: 0px;">      \@setminipage}</p>
<p style="margin: 0px; text-indent: 0px;">\def\endminipage{%</p>
<p style="margin: 0px; text-indent: 0px;">    \par</p>
<p style="margin: 0px; text-indent: 0px;">    \unskip</p>
<p style="margin: 0px; text-indent: 0px;">    \ifvoid\@mpfootins\else</p>
<p style="margin: 0px; text-indent: 0px;">      \vskip\skip\@mpfootins</p>
<p style="margin: 0px; text-indent: 0px;">      \normalcolor</p>
<p style="margin: 0px; text-indent: 0px;">      \footnoterule</p>
<p style="margin: 0px; text-indent: 0px;">      \unvbox\@mpfootins</p>
<p style="margin: 0px; text-indent: 0px;">    \fi</p>
<p style="margin: 0px; text-indent: 0px;">    \@minipagefalse   %% added 24 May 89</p>
<p style="margin: 0px; text-indent: 0px;">  \color@endgroup</p>
<p style="margin: 0px; text-indent: 0px;"> \egroup</p>
<p style="margin: 0px; text-indent: 0px;"> \if@rl\endL\fi</p>
<p style="margin: 0px; text-indent: 0px;">  \egroup</p>
<p style="margin: 0px; text-indent: 0px;">  \expandafter\@iiiparbox\@mpargs{\unhbox\@tempboxa}}</p><br><br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>