fix minor issue with checking src_nw_id and dst_nw_id