Fixes resource name duplicates