fixed empty text crash