fixed bug in uniq