fix bugs
fix bugs: protect threads_num_ and thread_ when start scan thread