fixed the unique result problem