For some reason the profile is being deleted when the user clicks on "Ok" after clicking on "Apply" only for new profiles.