Fixed a few profile management bugs
Merge remote-tracking branch 'origin/master'