fixing bug for LTR/RTL check
Merge pull request #1 from mambax7/master

fixing bug for LTR/RTL check