fixed a memory leak in single step experiments