Fix typos and handle uninitialized text view