Repair after receiving n_val.