fixed bug in token history, generation seems to work well now