nasty thread bug