fixed bug in text view