Fixed duplicate resource issue