Clear buffer after reading it