Fixed a bug in which agent variables such as step-size would not get reset between trials.