Fix another threading issue.