Fixed bug in the index definition