Fix for problems with text_content()