Fix incorrect endpoint for editing profiles