avoid duplicates of task ids