Fix urldupe query