Fixed a key generator.