Fixes Distinct issue.