Fixed the error where method constructNetwork tried to add the same items multiple times.