Re-ordered statements to ensure correct allocator is being registered.