fixe to start threads in detached state