Fix avoid attempting to rebuild the index,and skiperror features