friends to thread bug fix