multi thread fix (wrong join)