fix for updating profile's type
Merge remote-tracking branch 'origin/master'