fix word order for right-to-left