fix indexCdf