Remove a bug in lastIndex which only shows when an index block is filled while scanning it.