Fix invalid key size #2