"fix" key generation