fix for ValueError - list.remove
Merge pull request #804 from andrzej-jankowski/networks_fix

Networks FIX for ValueError