resolve duplicate resource