fix bugs

text content not empty