Fixed bugs in run methods