Fixed bug in results.py