Fix passing spec_pattern to distributor in allocator