Fix SecretKey issue