Fixed bug with .genToken()