ignore negative network values
add tomasz's better fix