Fix bug with profile names containing '.'