Fixed output buffer flushing instead of clearing on reset