Corrected passing of incorrect edge parameter