Fixing unique assignmentID code