fix rtl check