Fixed minor bug in task.getClone due to changes in Parser