XXX: fix 0 allocate