Fixed bug in profile name reg expression