Corrected duplication bug on edges population generation.