fix rendering setduration before all task saved