Make sure that the buffer is always emptied