Fix buffer management around 0