Clear data buffer after reading