fixed benchmarking bug with clearing the environment