[FIX] thread safe with mutex