MODIFIED: \AtBeginDocument wrapped around \renewcommand{\maketitle} for bidi