Fixed a bug where the keys would not generate.