Added test revealing problem with generation of sequence indexing
Added fix for generation of sequence indexing