fix bug in network