Correct thread bug for agent observer