Loop bug at lexer fixed