fix issue with secret_key