Fix duplicate resource names.