Fix _changeTextDirection global leak