Fix a bug with the size of the Net.
Fix second bug, related to BFS.