fix regression with keygen