Fix rebuild_indices if no name given