Corrected behavior when keygen empty