fixed BIDI issue