Fix an error with empty text.