Forgot to close the right thread var