important fix to child threads