Fixed crash when using protect_allocator option