fix uniq fname and uniq check