Fixed bug in secret_token