[HTOFIX] Make re-index command work again

Fixed re-index command

__Tasks:__

- [ ] gather feedback for my changes

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | yes
| Fixed tickets | none
| BC Breaks     | no
| Doc           | none