fix deleting networks