fixing simple problem if profile is sourced twice