fixed a problem that may be triggered by running "python setup.py test"