fixed issue where changing profiles (but run_as had same name) raised error rather than copied profile