Refix duplicate results bug