fix: Incorrect error buffer in two thread