fix non-copyable bug of BidirectionIndex.