Corrected thread crash