Corrected the bug in edge combination.