fix keyGeneration overlap