fixed a bug in the networkmodel