Attempt to fix keygen.