Fixing edge direction