Select edges properly