\makeatletter
\bidi@AtEndPreamble{%
\bidi@patchcmd\@@darghab{%
\ifx\@vasateghab\@void \hbox
}{%
\let\@footnotetext\bidipoem@p@ftntext
\ifx\@vasateghab\@void \hbox
}{\typeout{Succeded}}{\typeout{Failed}}
\bidi@patchcmd\@@darghab{%
\endL
}{%
\endL
\global\bidipoem@p@ftn\expandafter{\expandafter}\the\bidipoem@p@ftn
}{\typeout{Succeded}}{\typeout{Failed}}
}
\makeatother