fixed bug in edge detection configuration