better rtl support - issue #1279