Fixed segfault with allocator.construct()