Fixed network instance removal

fixes #651