Fix bug.

The quantity with different unit type should not be equal.