Fix bug with empty token.