bugfix in analyze_content