insertId bug fixed: add thread id into the id