multithread fix #3