fix multi thread bug
fix multi thread bug
fix warning