fix bug in network diagram