leden/entities: fix typo in ensure_indices