Fix removing networks. All tests pass again.