Fix rest lexer