fix secret_key typeof