Fix generate secret_token