Fixed bug in lexer when releasing tokens