Fix problem with creating new profiles via API.