Fixed a bug with profile name testing