Fix: ensure proper size of cannon buffers