Fixed couple of bugs in lexer.cpp.