[new index structure] Fixed bug in BTreeIndex, introduced in previous commit.