update internal/buffer: fix variables