Minor fix of UniqueEntity.