fix bad key usage