fix region implementation for allocator use