fixed a crash when input punctuation to empty text view

fixes #128