R: runTask bug fixed and tested