Fixed lexer infinite loop bug