Bug fix for text view demo project