fix genkey