fix bugs in get_net2
fix bugs in get_net1