fixing lex