Fix hang in Crowd.py, #2166.