Fix warning on duplicate resources