Fixed a bug related to textView