[bugfix] coredump on sg_update_sk