remove some bugs in method 'text'
