Fixed bugs in runStuff.