Fix a bug regarding the text content parsing