Fixed collisions that occur because assignmentid was previously assumed unique.