Fixing two small bugs in text view.