Fix issue with single named profiles
Merge pull request #21 from amacgregor/master

Fix issue with single named profiles