fix a bug of all assignments