Bugfixing paramter assignment, else only one network was assigned
instead of two or more