fixed save_current_profile.sh