Good catch.  I'll remove the "distinct" checks.