Clear the buffer initially