fix isAddPdDiv changed inside renderCelementsDocument