fix in doAssignment