Desperation thread bug hacks