Fix issue where updating a profile is broken