correct text dir