Bug: forgot to empty __buffer