اگر حداقل از نسخه 20.6 بسته bidi و نسخه 17.1 بسته xepersian استفاده میکنید، این مشکل حل شده است.
مشکل به خاطر یک اشتباه تایپی در فایل bidi.dtx (فایل سورس بسته bidi است) که به دلیل وجود داشتن % اضافه یک خط مهم در فایل fancyhdr-xetex-bidi.def حذف شده است. مشکل در نسخه بعدی بسته bidi حل خواهد شد.
برای روشنتر شدن مشکل، فایل کمینه زیر نیز مشکل را نشان میدهد
\documentclass{article}
\usepackage{fancyhdr}
\usepackage[RTLdocument=on]{bidi}
\pagestyle{fancy}
\fancyhead[c]{\parbox{\textwidth}{The header should be typeset in right to left mode but because of a typo in the source file \texttt{bidi.dtx}, it is typeset in left to right mode.}}
\begin{document}
This is a test
\end{document}