fix text direction