Fix bug in assignment.