fix panic in net diag