fixed benchmarking bugs