fix petition xindex issue