fix bug:wrong index in addtask;uniq add files