fix bug with performance testing