checking the src and dst network_id
fix minor issue with checking src_nw_id and dst_nw_id