Incorrect key size index detection was fixed.