bugfix when loading networks from current dir