generate_for_profile erroring due to protected method call