Fixed stupid concurrency-related bug.