Fixed Network class crash/memory bug