Fix uniq bug