fixed: check for thread valid/new