Prevent duplicate resources in the class introduced to prevent just that

It originally "worked" because of the typo, but the fix in 4f0e9751 actually uncovered the real issue.