Fixed lexer alloc functions