assign correct IDs to imported fields, in order to update them

otherwise it will result in a failed attempt to duplicate fields with the same name