Fix buffer usage bug.