Fix invalid key size