fixed bug in indexing