remove ref to .clear it breaks in allocator mode