Fix load error if index list is empty