Issue IKTREDEL-56 by cableman: Fixed index error in get indexes api call