Fixes types/token counts.