Fix key gen, earlier commit reffed wrong gen_keys method