Fix bug for RTL languages - refs #6490