fix: wrong var used
fix: custom buffers