fix a bug in UFS check heuristics