Fixed analysis thread bug