Fixed allocator and struct assignment