Bug fix: ReferenceError: add_profile is not defined