Fixed the merging of nets logic + fixed randomizer