<div dir="ltr">This is related to bidi and therefore it is a bidi bug. I appreciate if you make a bug report <a href="http://developer.berlios.de/bugs/?group_id=10901">here</a><br><br>For meantime, you can put this at the preamble of your document after loading bidi package:<br>
<br>\makeatletter<br>\def\leftmark{\expandafter\@leftmark\botmark\@empty\@empty}<br>\def\rightmark{\expandafter\@rightmark\firstmark\@empty\@empty}<br>\makeatother<br clear="all"><br><br>Also when you use the bidi package, \TeXXeTstate=1 is not needed.<br>
-- <br>Vafa<br>
</div>