fixed bug when network is created