fixed missing initialization of token variable