fixed index_sparse issue