Fixed bug in TailIndexSelector.