Fix add task conflict logical error