fix Agent::setAsUserProfile function
Merge branch 'fix-changeProfileAgent'