Fix problem with profiles deploy and unit