Clear buffer before useing it