fix performance.py