fix generic ecc