Fix undef key warnining in uniq util func