Fix buffer usage.