fix for generate_content