[COS] Fixed deterministic result Problem.

HashSet caused the Problem being not deterministic …