Fix secret_key issue