ecc enc/dec offset init fix