fixed boundary case of zero buffers