Fixed duplicate results bug