Fixed mistake with performance calculation