Small fix in token generation.