fix wrong number of tokens in stdout