Fix buffer header.