Fixed addProfile adds two profiles with the same name