fixes bug in TokensController