Correct a typo in the buffer handling